package com.shopping.auth.feign;

import com.shopping.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Europa
 */
@FeignClient("third-party")
public interface ThirdPartFeignService {

    /**
     * 发送验证码
     *
     * @param phone 接受短信的手机号
     * @param code  验证码
     * @return 发送结果
     */
    @PostMapping("/sms/sendcode")
    R sendCode(@RequestParam("phone") String phone,
               @RequestParam("code") String code);

}
